﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Login.aspx.vb" Inherits="Login" %>

<%@ Register Src="Control/Messagebox/msbox.ascx" TagName="msbox" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Login Form</title>
    <link href="Styles/style_login.css" rel="stylesheet" type="text/css" />
    <link href="Styles/thickbox.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="Styles/jquery-ui-1.8.1.custom.css" rel="stylesheet" type="text/css" media="screen" />
    <script src='<%=ResolveUrl("~/Scripts/jquery-1.4.1.min.js")%>' type="text/javascript"></script>
    <script src='<%=ResolveUrl("~/Scripts/jquery-ui-1.8.custom.min.js")%>' type="text/javascript"></script>
    <script src='<%=ResolveUrl("~/Scripts/jquery.ui.datepicker-vi.js")%>' type="text/javascript"></script>
    <script src='<%=ResolveUrl("~/Scripts/thickbox.js")%>' type="text/javascript"></script>
    <script src='<%=ResolveUrl("~/Scripts/thickbox-compressed.js")%>' type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#<%=txtUserName.ClientID() %>").focus();


            $(".form_login input").keypress(function (e) {
                if (e.keyCode == 13) {
                    $("#<%=btnLogin.ClientID()%>").click();
                    return false;
                }
            });

        });
    </script>
</head>
<body style="background: url(images/bgpage.jpg) no-repeat fixed 50% 50% !important">
    <form id="form1" runat="server">
    <div class="wrapper_login">
        <div class="main_login">
            <div class="row_login">
                <!-- logo page -->
                <div class="logo_login">
                    <a href="">
                        <img alt="Sacombank" src="images/logo_login.png" border="0"></a>
                </div>
                <!-- end logo pages -->
                <div class="name_login">
                    <img alt="Sacombank" src="images/name_login.png" border="0">
                </div>
                <div class="box_login">
                    <div class="form_login">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td width="40%" class="text_form_login" valign="middle" align="right">
                                    <img src="images/icon_login.png" align="absmiddle" border="0">
                                </td>
                                <td width="60%" valign="middle" align="left" class="title_login">
                                    ĐĂNG NHẬP
                                </td>
                            </tr>
                            <tr>
                                <td width="40%" valign="middle" align="right" class="text_form_login">
                                    Tên đăng nhập:
                                </td>
                                <td width="60%" valign="middle" align="left" class="text_form_login">
                                    <asp:TextBox ID="txtUserName" runat="server" CssClass="input_login cm-failed-field" Width="145"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUserName"
                                        ErrorMessage="Nhập tên đăng nhập" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td valign="middle" align="right" class="text_form_login">
                                    Mật khẩu:
                                </td>
                                <td valign="middle" align="left" class="text_form_login">
                                    <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" CssClass="input_login cm-failed-field"
                                        Width="145"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword"
                                        ErrorMessage="Nhập mật khẩu" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                                <td valign="middle" align="right" class="text_note_login" style="text-align: center;"
                                    colspan="2">
                                    <asp:CheckBox ID="chkRememberMe" runat="server" />&nbsp; &nbsp; Nhớ tên đăng nhập
                                    ?<br />
                                    <!--<asp:HyperLink ID="hplForgotPassword" runat="server">&nbsp; &nbsp;Quên mật khẩu?                
                </asp:HyperLink>-->
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                                <td class="text_form_login_2" valign="middle" align="left">
                                    <asp:Button ID="btnLogin" runat="server" Text="Đăng nhập" CssClass="btn_login" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                                <td class="text_form_login_links" valign="middle" align="left" colspan="2" >
                                    <asp:Label ID="lblLoginFail" runat="server" Text="Tên đăng nhập hoặc mật khẩu chưa chính xác. <br> Hãy nhập lại."
                                        Visible="False"></asp:Label>
                                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                                        ShowSummary="False" />
                                    <asp:Label ID="lblDateTime" runat="server"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <uc1:msbox ID="msbox1" runat="server" />
    </form>
</body>
</html>
